package com.ruoyi.miaomiao.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 f_goods
 * 
 * @author ruoyi
 * @date 2022-07-21
 */
@ApiModel(value = "商品对象", description = "商品对象的属性描述")
public class FGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    @ApiModelProperty(value = "商品id", name = "goodsId", example = "123456792")
    private Long goodsId;

    /** 商品名称 */
    @ApiModelProperty(value = "商品名称", name = "goodsName", example = "水杯")
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品封面 */
    @ApiModelProperty(value = "商品id", name = "goodsId", example = "封面需要以文件路径形式存于前端服务器")
    @Excel(name = "商品封面")
    private String goodsCover;

    /** 商品价格 */
    @ApiModelProperty(value = "商品价格", name = "goodsPrice", example = "99")
    @Excel(name = "商品价格")
    private Double goodsPrice;

    /** 库存 */
    @ApiModelProperty(value = "库存", name = "stock", example = "10")
    @Excel(name = "库存")
    private Long stock;

    /** 品牌 */
    @ApiModelProperty(value = "品牌", name = "brand", example = "卫龙")
    @Excel(name = "品牌")
    private String brand;

    /** 商品分类 */
    @ApiModelProperty(value = "商品分类", name = "classification", example = "零食")
    @Excel(name = "商品分类")
    private String classification;

    /** 商品二次分类 */
    @ApiModelProperty(value = "商品二次分类", name = "secondClassification", example = "辣条")
    @Excel(name = "商品二次分类")
    private String secondClassification;

    /** 商品状态（1-上架，0-下架） */
    @ApiModelProperty(value = "商品状态", name = "goodsStatus", example = "（1-上架，0-下架）")
    @Excel(name = "商品状态", readConverterExp = "1=-上架，0-下架")
    private String goodsStatus;

    /** 创建者 */
    @ApiModelProperty(value = "创建者", name = "creator", example = "admin")
    @Excel(name = "创建者")
    private String creator;

    /** 更新者 */
    @ApiModelProperty(value = "更新者", name = "updater", example = "admin")
    @Excel(name = "更新者")
    private String updater;

    /** 商品描述 */
    @ApiModelProperty(value = "商品描述", name = "goodsDescription", example = "好吃")
    @Excel(name = "商品描述")
    private String goodsDescription;

    /** 商品详情 */
    @ApiModelProperty(value = "商品详情", name = "goodsDetail", example = "不宜多吃")
    @Excel(name = "商品详情")
    private String goodsDetail;

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodsCover(String goodsCover) 
    {
        this.goodsCover = goodsCover;
    }

    public String getGoodsCover() 
    {
        return goodsCover;
    }
    public void setGoodsPrice(Double goodsPrice)
    {
        this.goodsPrice = goodsPrice;
    }

    public Double getGoodsPrice()
    {
        return goodsPrice;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }
    public void setClassification(String classification) 
    {
        this.classification = classification;
    }

    public String getClassification() 
    {
        return classification;
    }
    public void setGoodsStatus(String goodsStatus) 
    {
        this.goodsStatus = goodsStatus;
    }

    public String getSecondClassification() {
        return secondClassification;
    }

    public void setSecondClassification(String secondClassification) {
        this.secondClassification = secondClassification;
    }

    public String getGoodsStatus() 
    {
        return goodsStatus;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }
    public void setGoodsDescription(String goodsDescription) 
    {
        this.goodsDescription = goodsDescription;
    }

    public String getGoodsDescription() 
    {
        return goodsDescription;
    }
    public void setGoodsDetail(String goodsDetail) 
    {
        this.goodsDetail = goodsDetail;
    }

    public String getGoodsDetail() 
    {
        return goodsDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("goodsCover", getGoodsCover())
            .append("goodsPrice", getGoodsPrice())
            .append("stock", getStock())
            .append("brand", getBrand())
            .append("classification", getClassification())
            .append("getSecondClassification", getSecondClassification())
            .append("goodsStatus", getGoodsStatus())
            .append("createTime", getCreateTime())
            .append("creator", getCreator())
            .append("updateTime", getUpdateTime())
            .append("updater", getUpdater())
            .append("goodsDescription", getGoodsDescription())
            .append("goodsDetail", getGoodsDetail())
            .toString();
    }
}
